home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Freeware 1998 November
/
Freeware November 1998.img
/
dist
/
fw_UDELxntp.idb
/
usr
/
freeware
/
src
/
xntp-3.4o-export
/
lib
/
utvtoa.c.z
/
utvtoa.c
Wrap
C/C++ Source or Header
|
1998-01-21
|
353b
|
22 lines
/*
* utvtoa - return an asciized representation of an unsigned struct timeval
*/
#include <stdio.h>
#include <sys/time.h>
#include "lib_strbuf.h"
#include "ntp_stdlib.h"
char *
utvtoa(tv)
struct timeval *tv;
{
register char *buf;
LIB_GETBUF(buf);
(void) sprintf(buf, "%lu.%06lu", (u_long)tv->tv_sec,
(u_long)tv->tv_usec);
return buf;
}